/* 公共底部导航 */
function fixBottomNav(name) {
    //创建div
    const div = document.createElement('div')
    div.className = 'footer'
    div.innerHTML = `
    <a class="home footItem ${name === 'index'?'active' : ''}" href="index.html">
    <i class="iconfont">&#xe64f;</i>
    <span">首页</span>
    </a>
    <a class="exercise footItem ${name === 'running'?'active' : ''}" href="running.html">
        <i class="iconfont">&#xe65d;</i>
        <span>运动</span>
    </a>
    <a class="circle footItem ${name === 'circle'?'active' : ''}" href="attention.html">
        <i class="iconfont">&#xe621;</i>
        <span>圈子</span>
    </a>
    <a class="mine footItem ${name === 'mine'?'active' : ''}" href="mine.html">
        <i class="iconfont">&#xe641;</i>
        <span>我的</span>
    </a>
    `
        //将div追加到Body中
    document.body.append(div)
}
module.exports = {
    fixBottomNav
}